﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EBSTestA
{
    public partial class PublishTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 发布数据到服务器
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void _ctlBtnSubmit_Click(object sender, EventArgs e)
        {
            string nsevent = this._ctlNSEVENT.Text;
            string[] nseventArr = nsevent.Split(new char[] { ':' });
            string data = this._ctlData.Text;

            CPPEI.EBS.Proxy.EBSProxy.Publish(nseventArr[0], nseventArr[1], data);
        }

        protected void _ctlRegister_Click(object sender, EventArgs e)
        {
            string nsevent = this._ctlNSEVENT.Text;
            string[] nseventArr = nsevent.Split(new char[] { ':' });
            CPPEI.EBS.Proxy.EBSProxy.Register(nseventArr[0], nseventArr[1], this.ResolveClientUrl("~/ReceiveTest.aspx"));
        }
    }
}